package com.zhonghui.scm.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import com.zhonghui.scm.domain.ScmSaleReturnItem;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 供应链SCM-销售管理-销售退货对象 scm_sale_return
 * 
 * @author qiezhi
 * @date 2023-12-18
 */
@Data
public class ScmSaleReturnVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private Long id;

    /** 退货单号 */
    @Excel(name = "退货单号")
    private String returnNo;

    /** 发货id */
    @Excel(name = "发货id")
    private Long deliveryId;
    private String deliveryNo;
    private Date deliveryDate;

    /** 合同id */
    @Excel(name = "合同id")
    private Long contractId;
    private String contractNumber;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customId;
    private String customName;

    /** 退货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnDate;

    /** 退货金额 */
    @Excel(name = "退货金额")
    private BigDecimal returnAmount;

    /** 退货原因 */
    private String reason;

    /** 入库状态:0未入库,1已入库,2入库中 */
    @Excel(name = "入库状态:0未入库,1已入库,2入库中")
    private Long status;

    /** 供应链SCM-销售管理-销售退货子信息 */
    private List<ScmSaleReturnItemVo> scmSaleReturnItemList;


}
